package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-20
 * Time:17:27
 */
public class BookList {
    private Book[] books;
    private int usedSize;
    public final int Capacity = 10;

    public Book getBooks(int pos) {
        return books[pos];
    }

    //将 pos处的元素设为 book
    public void setBooks(Book book,int pos) {
        this.books[pos] = book;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
